<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>积分换礼 - {$Config.sitename}</title>
    <link rel="stylesheet" href="__CSS__/global.css" />
    <link rel="stylesheet" href="__CSS__/jifen.css" />
    <Admintemplate file="Home/Public/global_js"/>
    <script src="__JS__/jquery.min.js"></script>
</head>

<body>
<div class="b-page">
    <include file="Public:header"/>
<a href="{$midad.linkurl}" class="b-banner_big" style="background-image: url(__FILESURL__{$midad.image});">{$midad.title}</a>
<div style="overflow:hidden;background-color:#f5f4f2;padding-bottom:20px;">
    <div class="b-body l-center l-mgt20" style="background-color:#fff;padding-top:30px;">
        <div class="b-body__left" style="width:600px;padding-left:20px;">
            <div style="overflow:hidden;">
                <div style="width:20%;height:30px;line-height:30px;font-size:18px;color:#666666;font-weight:bold;float:left;border-bottom:2px solid #ff6600;">积分换礼</div>
                <div style="float:right;width:80%;height:30px;border-bottom:2px solid #dedede;"></div>
            </div>

            <foreach name="list" item="vo">
                <div class="b-jifen">
                    <div class="b-jifen__body">
                        <div class="b-jifen__t1"><a href="__WEBURL__/jifen/detail/{$vo.id}.html">{$vo.title}</a></div>
                        <div class="b-jifen__t2">兑换价格：<span>{$vo.needjf}</span> 烘焙圈积分</div>
                        <div class="b-jifen__t2">申请人数：<span>{$vo.requestnum}</span> 个</div>
                        <div class="b-jifen__t2">已兑数量：<span>{$vo.dhnum}</span> 个</div>
                        <div class="b-jifen__t2">库存数量：<span>{$vo.stocknum}</span> 个</div>
                        <if condition="$vo.rcount gt 0">
                            <div class="jifen-applied-btn">您已兑换</div>
                        <else/>
                        <a href="__WEBURL__/jifen/apply/" class="J_ajax_link b-jifen__t4" data-datas="infoid,{$vo.id}">我要兑换</a>
                            </if>
                        <a href="__WEBURL__/jifen/detail/{$vo.id}.html"><img src="__FILESURL__{$vo.image}" alt="" class="b-jifen__t5"></a>
                    </div>
                </div>
            </foreach>

            <div class="pager">{$Page}</div>
        </div>
        <div class="b-body__right" style="margin-right:20px;">
            <a href="{$rightad.linkurl}"><img src="__FILESURL__{$rightad.image}"></a>
            <if condition="$userinfo.userid eq ''">
            <div class="b-jfLogin">
                <a href="__WEBURL__/user/login/register" class="b-jfLogin__btn">快速注册赢礼品</a>
                <div style="font-size:18px;padding:20px 0;">已有帐号? 点此<a href="__WEBURL__/user/login" class="b-jfLogin__btn2">登录</a></div>
                <div style="overflow:hidden;font-size:14px;color:#6f6f6f;height:32px;line-height:32px;text-align:left; display: none">
                    <span style="float:left;padding-left:50px;">合作帐号快速登录：</span>
                    <a href="" class="b-login__hezuoItem"><img class="l-full" src="__IMAGES__/icon_login_qq.png"></a>
                    <a href="" class="b-login__hezuoItem"><img class="l-full" src="__IMAGES__/icon_login_weibo.png"></a>
                </div>
            </div>
            </if>
            <div class="b-sideBox l-mgt20">
                <div class="b-sideBox__title">
                    <div class="b-sideBox__name">最新礼品兑换情况</div>
                </div>
                <empty name="applylist"><div class="nodata">暂无人兑换</div></empty>
                <foreach name="applylist" item="al">
                    <div class="b-beiyouItem">
                        <a href="__WEBURL__/u/{$al.openuid}" class="b-beiyouItem__pic"><img src="{$al.uavatar|getUavatar}"><i class="b-popOtherZuopin__itemMask"></i></a>
                        <a href="__WEBURL__/u/{$al.openuid}" class="b-beiyouItem__name">{$al.nickname}</a>
                        <div class="b-beiyouItem__info">
                            <a href="__WEBURL__/jifen/detail/{$al.id}.html"> 兑换了 {$al.title}</a>
                        </div>
                        <div class="b-beiyouItem__time">{$al.create_time|format_time}</div>
                    </div>
                </foreach>


            </div>

        </div>
    </div>
</div>
    <include file="Public:footer"/>
</div>
<script src="__JS__/index.js"></script>
<script src="__JS__/jquery.common.js?v=20150101"></script>
<script src="__JS__/jquery.doajax.js"></script>
</body>
</html>